package com.jichaoyun.sys.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jichaoyun.model.entity.StationInfo;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhangzhen
 * @since 2023-11-11
 */
@Mapper
@DS("steam")
public interface StationInfoMapper extends BaseMapper<StationInfo> {

    StationInfo selectFirstOne();

    @DS("water")
    StationInfo selectOneWaterStation(@Param("stationNo") Integer stationNo);

    @DS("water")
    Integer updateOneWaterStation(@Param("stationNo") Integer stationNo,@Param("userId") Integer userId );

    @DS("water")
    List<StationInfo> selectWaterStationsByUid(@Param("uid") Integer uid);


}
